#coding=utf-8
from django.db import models
# Create your models here.

class Config(models.Model):
    key            = models.CharField('键名', max_length = 128, unique = True)
    name           = models.CharField('描述', max_length = 128, unique = True)
    value          = models.CharField('值', max_length = 128, blank = True)
    
    def __unicode__(self):
        return '%s : %s' % (self.key, self.value)
    
    class Meta:
        ordering            = ['name']
        verbose_name_plural = '配置信息'

